package com.tianpengtech.common.model.appsetting;

import com.tianpengtech.common.model.AbstractBaseModel;

/**
 * 实体类名-APP设置 fair_app_setting
 *
 * @since Tue Nov 28 15:23:57 HKT 2017
 */
public class AppSetting extends AbstractBaseModel<AppSetting> {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	public static final AppSetting dao = new AppSetting();

	public static final String ID = "id"; //
	public static final String NAME = "name"; // 名称
	public static final String CATEOGRY = "cateogry"; // 所属栏目
	public static final String SORT = "sort"; // 排序
	public static final String SELECT_ICON = "select_icon"; // 选中图片
	public static final String UNSELECT_ICON = "unselect_icon"; // 非选中图片
	public static final String CREATE_TIME = "create_time"; // 创建时间
	

	public static final int FANS=1;
	public static final int XINGQU=2;
	public static final int HONOR=3;
	
	public String category(){
		String value="未知";
		if(getInt(CATEOGRY)==FANS){
			value= "粉丝特征";
		}else if(getInt(CATEOGRY)==XINGQU){
			value= "兴趣爱好";
		}else if(getInt(CATEOGRY)==HONOR){
			value= "我的荣耀";
		}
		return value;
	}
	
	
	@Override
	public String tableName() {
		return "fair_app_setting";
	}

}